//
//  CAForthViewController.m
//  qiche
//
//  Created by Seimei on 12-11-7.
//  Copyright (c) 2012年 iCar. All rights reserved.
//

#import "CAForthViewController.h"

@interface CAForthViewController ()

@end

@implementation CAForthViewController
@synthesize tableView;
@synthesize dataArray;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
        self.title = NSLocalizedString(@"汽车体检", @"汽车体检");
        //self.tabBarItem.image = [UIImage imageNamed:@"second"];

    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.navigationController.title = NSLocalizedString(@"汽车体检", @"汽车体检");
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark- UITableViewDataSource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 2;
}

- (NSInteger)tableView:(UITableView *)activeTableView numberOfRowsInSection:(NSInteger)section 
{
    switch (section) {
        case 0:
        {
            return 1;
        }
            break;
        case 1:
        {
            if (self.dataArray) {
                return [self.dataArray count];
            }
            return 0;
        }
            break;
        default:
            break;
    }
    return 0;
}

- (UITableViewCell *)tableView:(UITableView *)aTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    static NSString *tagStr = @"test3Cell";
    UITableViewCell *cell=[aTableView dequeueReusableCellWithIdentifier:[NSString stringWithFormat:@"%@%d",tagStr,indexPath.row]];
    if (!cell) {
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:[NSString stringWithFormat:@"%@%d",tagStr,indexPath.row]] autorelease];
    }
    switch (indexPath.section) {
        case 0:
            
            break;
        case 1:
            break;
        default:
            break;
    }
    //cell.textLabel.text = [_titleArray objectAtIndex:indexPath.row];
    cell.textLabel.textColor = [UIColor brownColor];
    cell.textLabel.font = [UIFont systemFontOfSize:14.0f];
    return cell;
}

#pragma mark- UITableViewDelegate
- (CGFloat)tableView:(UITableView *)aTableView heightForRowAtIndexPath:(NSIndexPath *)indexPath 
{
    return 35.0f;
}

@end
